/*
	Copyright Christopher Diggins 2008
	Licensed under LGPL version 3.0
	http://cppscript.googlecode.com
*/

#ifndef CPPI_TESTS_HPP
#define CPPI_TESTS_HPP

namespace cppi_tests
{
	using namespace cppi;
	using namespace sexpr;
	using namespace cppscript_grammar;

	bool Test(const char* x) {
		int n = strlen(x);
		var tree;
		bool b = Parse<cppscript_grammar::Script>(x, x + n, tree, true);
		writeln(sexpr::Print(tree));
		return b;
	};

	void RunTests() {
		Test("var f() { }");
		Test("var f(var x) { }");
	}
}

#endif
